import request from '@/request';

interface getLog {
    page: number,
    pageSize: number,
    requestUrl?: string,
    ip?: string,
    username?: string,
    time?: string[],
    startTime ?: string,
    endTime ?: string
}
/**获取日志列表*/
export const getLogList = (params: getLog) => request({
    url: '/api/v2/admin/getLog',
    method: 'get',
    params
})

/**清空日志*/
export const clearLog = () => request({
    url: '/api/v2/admin/clearLog',
    method: 'post'
}) 